package com.mf.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.ToString;

import java.io.Serial;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * 部门表
 *
 * @author mf
 * @since 2024-09-20
 */
@Getter
@ToString
@Setter
@TableName("p_dept")

public class DeptBo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 所属上级
     */
    private Integer pid;

    /**
     * 部门负责人id
     */
    private Integer managerId;

    /**
     * 1启用，0禁用
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;
    /**
     * 排序
     */
    private Integer sort;


    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}